//
//  HomeViewController.swift
//  SwiftQiushi
//
//  Created by ch on 2020/10/16.
//  Copyright © 2020 ch. All rights reserved.
//

import UIKit

class HomeViewController: UIViewController {
    
 
    override func viewDidLoad() {
        super.viewDidLoad()

        title = "首页"
        view.backgroundColor = .purple
        
        let infoDic = Bundle.main.infoDictionary
        
        let label = UILabel(frame: CGRect(x: 0, y: 0, width: 100, height: 100))
        label.textColor = .black
        label.text = "版本号：\(infoDic?["CFBundleIdentifier"] ?? "") \n 包名：\(infoDic?["CFBundleIdentifier"] ?? "")"
        view.addSubview(label)
        label.sizeToFit()
        label.center = view.center
    }
    
    @objc func btnAction(){
        self.navigationController?.pushViewController(HomeDetailViewController(), animated: true)
    }
    

}


